﻿namespace AC.ExtendedRenderer.Toolkit
{
    using System;
    using System.Drawing;
    using System.Windows.Forms;

    public class TreeGridColumn : DataGridViewTextBoxColumn
    {
        internal Image _defaultNodeImage;

        public TreeGridColumn()
        {
            this.CellTemplate = new TreeGridCell();
        }

        public override object Clone()
        {
            TreeGridColumn column = (TreeGridColumn) base.Clone();
            column._defaultNodeImage = this._defaultNodeImage;
            return column;
        }

        public Image DefaultNodeImage
        {
            get
            {
                return this._defaultNodeImage;
            }
            set
            {
                this._defaultNodeImage = value;
            }
        }
    }
}

